<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * FormativeLab
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		FormativeLab
 * @author		FormativeLab Dev Team
 * @copyright	Copyright (c) 2011 - 2013, FormativeLab, Inc.
 * @license		http://www.formativesoft.com/license/
 * @link		http://www.formativesoft.com/
 * @since		Version 2.0
 * @filesource ./application/modules/admin/controllers/Unit.php
 */

// ------------------------------------------------------------------------

/**
 * FormativeLab Unit Controller
 *
 * @package		FormativeLab
 * @subpackage	modules/admin/controllers
 * @category	controllers
 * @author		Formative Soft Ltd
 * @link		http://www.formativesoft.com/
 */

// ------------------------------------------------------------------------

class Unit extends MX_Controller {

	static $helper	= array('xml', 'url', 'text', 'model', 'method', 'dom', 'resource', 'rss', 'language', 'constraints');
	static $model	= array('Entity', 'M00I001');

	public function __construct(){
        parent::__construct();
		$this->load->database();
		$this->load->helper(self::$helper);
		$this->load->model(self::$model);
		$this->load->library('Renderer', '', 'render');
    }	
	
	public function index(){
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
	public function save(){
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
	public function update(){		
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
}

/* End of file Unit.php */
/* Location: ./application/modules/admin/controllers/Unit.php */